<?php
/**
 * File Name: theme_comment.php
 *
 * Theme Custom Comment Template
 *
 */

function theme_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    switch ( $comment->comment_type ) :
        case 'pingback' :
        case 'trackback' :
            ?>
            <li class="pingback">
                <p><?php _e( 'Pingback:', 'framework' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'framework' ), ' ' ); ?></p>
            </li>
            <?php
            break;
        default :
            ?>
            <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
                <article id="comment-<?php comment_ID(); ?>">

                    <a href="<?php comment_author_url(); ?>">
                        <?php echo get_avatar( $comment, 110 ); ?>
                    </a>

                    <div class="comment-detail-wrap">

                        <span class="comment-detail-wrap-arrow"></span>

                        <div class="comment-meta">
                            <h5 class="author"><cite class="fn"><?php printf( __('%s', 'framework'), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?></cite></h5>

                            <p>
                                <?php _e('on','framework'); ?>&nbsp;
                                <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
                                    <time datetime="<?php comment_time( 'c' ); ?>">
                                        <?php printf( __( '%1$s at %2$s', 'framework' ), get_comment_date(), get_comment_time() ); ?>
                                    </time>
                                </a>
                                &nbsp;<?php _e('said','framework'); ?>&nbsp;
                            </p>

                        </div>

                        <div class="comment-body">
                            <?php comment_text(); ?>
                            <?php comment_reply_link( array_merge( array('before' => ''), array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
                        </div>

                    </div>

                </article><!-- end of comment -->
            <?php
            break;
    endswitch;
}

?>